import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({
  location: config.locationType,
  rootURL: config.rootURL
});

Router.map(function() {
  this.route('recharge');
  this.route('personal');
  this.route('rankingall');
  this.route('start', { path: '/start/:game_id' });
  this.route('recordss');
  this.route('inform');
  this.route('mysite');
  this.route('redact');
  this.route('beforewinners');
  this.route('thisranking');
  this.route('gameover');
  this.route('startshare');
  this.route('gameshare', {path:'/gameshare/:game_id'});
  this.route('signin');
  this.route('allprize');
  this.route('sharegrade');
  this.route('beforewinnersshare');
  this.route('page-not-found', { path: '/*wildcard' });
  this.route('game-winners');
  this.route('start-two');
  this.route('gameovers');
  this.route('gameTwoshare');
  this.route('helloWorld', function() {
    this.route('test');
  });
});

export default Router;
